package net.wicp.tams.component.constant;

public enum ChartType {
	column("柱装图"), line("折线图");
	private String desc;

	private ChartType(String desc) {
		this.desc = desc;
	}

	public String getDesc() {
		return this.desc;
	}

	public static final ChartType valueOfDefault(String name,
			ChartType defaultvalue) {
		ChartType retobj = valueOf(name);
		if (defaultvalue == null)
			defaultvalue = line;
		return retobj == null ? defaultvalue : retobj;// 没有找到都是折线图
	}
}
